Skip to content

Expose new models created after the explorer is initiated - #22

Closed
raymondfeng wants to merge 1 commit into
masterfrom
feature/allow-remoting-after-init
Closed

Expose new models created after the explorer is initiated#22
raymondfeng wants to merge 1 commit into
masterfrom
feature/allow-remoting-after-init

Conversation

@raymondfeng

Copy link
Copy Markdown
Member

/to @ritch or @bajtos

The PR fixes the issue that models remoted after the explorer is initiated are not visible.

It depends on strongloop/loopback#402

Comment thread lib/swagger.js

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it should be easy to filter routes for a given class only - see the code in addRouteToAPISpec which is looking up the class name and shared class using the route metadata.

Once we have a function "return the sub-array of routes that are for the given class", this hack will be no longer necessary.

@bajtos bajtos changed the title Allow model remoting after the explorer is initiated Expose new models created after the explorer is initiated Sep 18, 2014
@bajtos bajtos added the #review label Oct 7, 2014
@jsheely

jsheely commented Nov 9, 2015

Copy link
Copy Markdown

Please ensure that strongloop/loopback#686 is complete before merging in this fix.

Many members in the community would like to have remote methods that are invisible to the /explorer UI but can be called if you know about them. "secret endpoints" if you will.

@AurelieV

Copy link
Copy Markdown

@raymondfeng any evolution for this PR? Now that explorer is in a component, the workaround of defining the boot script before the explorer is not possible.
So how is it possible to add a remote method in boot script, and see it in explorer?

@superkhau

Copy link
Copy Markdown
Contributor

@raymondfeng Is this PR still relevant? It was opened in 2014, if not lets just close this.

@richardpringle

Copy link
Copy Markdown
Contributor

Closing.... we can re-open if necessary

@kristojorg

Copy link
Copy Markdown

Is there any way to expose remote methods added in a boot script?

@bajtos

bajtos commented Apr 24, 2017

Copy link
Copy Markdown
Member

@kristojorg

Is there any way to expose remote methods added in a boot script?

There is already work in progress to implement this feature. See #208 and strongloop/loopback#3322

Unfortunately, #208 looks pretty much abandoned. Would you like to take it over, add the required test and submit as a new pull request?

@bajtos
bajtos deleted the feature/allow-remoting-after-init branch April 24, 2017 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants